from gevent.pywsgi import WSGIServer
from flask import Flask
app = Flask(__name__)

http_server = WSGIServer(('', 5000), app)
http_server.serve_forever()